@layout("/common/_form.html",{js:["/assets/erya/rawmaterial/rawmaterial_edit.js"], css:["/assets/util/util.css"]}){

<form class="layui-form" id="costingFrom" lay-filter="skuForm" style="height: 400px">
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-card-header">修改食材采购信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <div class="layui-form-item layui-row">
                        <input name="id" type="hidden" id="id"/>
                        <input name="materialCode" type="hidden" id="materialCode"/>
                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label wd150">食材名称<span style="color: red;">*</span></label>
                            <div class="layui-input-inline wd550">
                                <input id="materialName" name="materialName" placeholder="请输入食材名称" type="text" class="layui-input"
                                       lay-verify="required" readonly autocomplete="off"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label wd150">食材单价(元/斤)<span style="color: red;">*</span></label>
                            <div class="layui-input-inline wd550">
                                <input id="unitPrice" name="unitPrice" placeholder="请输入食材单价" type="text" class="layui-input"
                                       lay-verify="required|number" autocomplete="off"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label wd150">食材进货量(斤)<span style="color: red;">*</span></label>
                            <div class="layui-input-inline wd550">
                                <input id="buyQuantity" name="buyQuantity" placeholder="请输入食材进货量" type="text" class="layui-input"
                                       lay-verify="required|number" autocomplete="off"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label wd150">食材总价(元)<span style="color: red;">*</span></label>
                            <div class="layui-input-inline wd550">
                                <input id="totalPrice" name="totalPrice" placeholder="请输入食材总价" type="text" class="layui-input"
                                       lay-verify="required|number" autocomplete="off"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label wd150">食材进货渠道<span style="color: red;">*</span></label>
                            <div class="layui-input-inline wd550">
                                <select name="buyChannel" id="buyChannel" lay-verify="required">
                                    <option value="">请选择食材进货渠道</option>
                                    <option value="商超">商超</option>
                                    <option value="菜市场">菜市场</option>
                                    <option value="美团">美团</option>
                                    <option value="盒马">盒马</option>
                                    <option value="叮咚">叮咚</option>
                                    <option value="七鲜">七鲜</option>
                                </select>
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label wd150">食材进货日期<span style="color: red;">*</span></label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" id="buyDate" placeholder="请输入食材进货日期" autocomplete="off" name="buyDate" lay-verify="required">
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label wd150">供货人<span style="color: red;"></span></label>
                            <div class="layui-input-inline wd550">
                                <input id="supplier" name="supplier" placeholder="请输入供货人" type="text" class="layui-input"
                                       autocomplete="off"/>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label wd150">额外描述<span style="color: red;"></span></label>
                            <div class="layui-input-inline wd550">
                                <input id="extraDesc" name="extraDesc" placeholder="请输入额外描述" type="text" class="layui-input"
                                       autocomplete="off"/>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <div class="form-group-bottom text-center">
            <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
            <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
        </div>
    </div>
</form>
@}
